#include "ComponentNoiseListener.h"
#include "INoiseListener.hpp"


#include "Engine/MathUtils.hpp"
#include "Log.h"

#include "GameSingleton.h"
#include "GameRegistry.hpp"
#include "GameThreadPool.hpp"
#include "GameRandom.hpp"

#include "Game/TableComponent.hpp"

#include <iostream>

namespace PocketSurvival
{
    static const std::string componentName = "ComponentNoiseListener";
    const std::string &ComponentNoiseListener::getName() const
    {
        return componentName;
    }
    const std::string &ComponentNoiseListener::GetName()
    {
        return componentName;
    }

    void ComponentNoiseListener::load(const nlohmann::json &jsonData)
    {
        TableComponent *tableCom = GameSingleton::gameRegistry->get<TableComponent*>(entity);
        tableCom->dynamicFindComponent<INoiseListener>(noiseVec);
    }
}
